<?php
// +----------------------------------------------------------------------
// | 海豚PHP框架 [ DolphinPHP ]
// +----------------------------------------------------------------------
// | 版权所有 2016~2017 河源市卓锐科技有限公司 [ http://www.zrthink.com ]
// +----------------------------------------------------------------------
// | 官方网站: http://dolphinphp.com
// +----------------------------------------------------------------------
// | 开源协议 ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------

use think\Route;


return [
    // 对模块进行配置
    'user_model' => 'app\mogo\model\User', // 需要绑定的用户模型
    'user_table' => 'dp_mogo_user',
    'user_filed' => [  // 绑定的用户字段
        'nickname' => 'nickname',  // 名称
        'avatar' => 'avatar',   // 头像链接

    ],
    'wechat_config' => [
        "ak" => 'asdasdasd',
        "sk" => "asdasdas",
        "appid" => 'asdasdasd',
    ],
    'wechat_config_temp' => [
        "ak" => 'asdasdasd',
        "sk" => "asdasdas",
        "appid" => 'asdasdasd',
    ],
    'exception_handle' => function (Exception $e) {
        if (request()->isAjax()&&request()->input('debug')!='1') {
            return json(['error' => $e->getMessage()], 500);
        }
    }
];



